3f4a94b9e2f3059ed23adc6e7573c8e1ca074938,src/com/trollworks/gcs/weapon/WeaponDescriptionCell.java,WeaponDescriptionCell,getPreferredWidth,#Row#Column#,77
Before Change
@Override
public int getPreferredWidth(Row row, Column column) {
WeaponDisplayRow theRow = (WeaponDisplayRow) row;
int width = TextDrawing.getWidth(UIManager.getFont(GCSFonts.KEY_FIELD), getPrimaryText(theRow));
String notes = getSecondaryText(theRow);
if (notes.trim().length() > 0) {
int notesWidth = TextDrawing.getWidth(UIManager.getFont(GCSFonts.KEY_FIELD_NOTES), notes);
if (notesWidth > width) {
width = notesWidth;
After Change
@Override
public int getPreferredWidth(Outline outline, Row row, Column column) {
Scale scale = Scale.get(outline);
WeaponDisplayRow theRow = (WeaponDisplayRow) row;
int width = TextDrawing.getWidth(scale.scale(UIManager.getFont(GCSFonts.KEY_FIELD)), getPrimaryText(theRow));
String notes = getSecondaryText(theRow);
if (notes.trim().length() > 0) {
int notesWidth = TextDrawing.getWidth(scale.scale(UIManager.getFont(GCSFonts.KEY_FIELD_NOTES)), notes);
if (notesWidth > width) {
width = notesWidth;
}